package cn.agiledata.bank.audit.form;

import org.apache.struts.action.ActionForm;

import cn.agiledata.bank.common.util.Constant;
import cn.agiledata.bank.hibernateBean.AuditStep;

public class AuditRuleForm extends ActionForm {

    private Long id;

    private String name;

    private long transactionTypeId;

    private int valid;

    private AuditStep[] auditSteps;

    private boolean setAuditStep;

    private int auditStepLevel;

    private String auditStepName;

    private Long auditGroupId;
    
    private int auditStepsCount;
    
    private String[] auditGroupBeanList0;
    
    private String[] auditGroupBeanList1;
    
    private String[] auditGroupBeanList2;
    
    private String[] auditGroupBeanList3;
    
    private String[] auditGroupBeanList4;
    
    private String[] auditGroupBeanList5;
    
    



	public String[] getAuditGroupBeanList0() {
		return auditGroupBeanList0;
	}

	public void setAuditGroupBeanList0(String[] auditGroupBeanList0) {
		this.auditGroupBeanList0 = auditGroupBeanList0;
	}

	public String[] getAuditGroupBeanList1() {
		return auditGroupBeanList1;
	}

	public void setAuditGroupBeanList1(String[] auditGroupBeanList1) {
		this.auditGroupBeanList1 = auditGroupBeanList1;
	}

	public String[] getAuditGroupBeanList2() {
		return auditGroupBeanList2;
	}

	public void setAuditGroupBeanList2(String[] auditGroupBeanList2) {
		this.auditGroupBeanList2 = auditGroupBeanList2;
	}

	public String[] getAuditGroupBeanList3() {
		return auditGroupBeanList3;
	}

	public void setAuditGroupBeanList3(String[] auditGroupBeanList3) {
		this.auditGroupBeanList3 = auditGroupBeanList3;
	}

	public String[] getAuditGroupBeanList4() {
		return auditGroupBeanList4;
	}

	public void setAuditGroupBeanList4(String[] auditGroupBeanList4) {
		this.auditGroupBeanList4 = auditGroupBeanList4;
	}

	public String[] getAuditGroupBeanList5() {
		return auditGroupBeanList5;
	}

	public void setAuditGroupBeanList5(String[] auditGroupBeanList5) {
		this.auditGroupBeanList5 = auditGroupBeanList5;
	}

	public int getAuditStepsCount() {
		return auditStepsCount;
	}

	public void setAuditStepsCount(int auditStepsCount) {
		this.auditStepsCount = auditStepsCount;
	}

	public AuditStep[] getAuditSteps() {
        return this.auditSteps;
    }

    public void setAuditSteps(AuditStep[] auditSteps) {
        this.auditSteps = auditSteps;
    }

    public Long getId() {
        return this.id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getName() {
        return this.name;
    }

    public void setName(String name) {
        if (name != null)
            name = name.trim();
        this.name = name;
    }

    public long getTransactionTypeId() {
        return this.transactionTypeId;
    }

    public void setTransactionTypeId(long transactionTypeId) {
        this.transactionTypeId = transactionTypeId;
    }

    public int getValid() {
        return this.valid;
    }

    public void setValid(int valid) {
        this.valid = valid;
    }

    public boolean getSetAuditStep() {
        return this.setAuditStep;
    }

    public void setSetAuditStep(boolean setAuditStep) {
        this.setAuditStep = setAuditStep;
    }

    public Long getAuditGroupId() {
        return this.auditGroupId;
    }

    public void setAuditGroupId(Long auditGroupId) {
        this.auditGroupId = auditGroupId;
    }

    public int getAuditStepLevel() {
        return this.auditStepLevel;
    }

    public void setAuditStepLevel(int auditStepId) {
        this.auditStepLevel = auditStepId;
    }

    public String getAuditStepName() {
        return this.auditStepName;
    }

    public void setAuditStepName(String auditStepName) {
        if (auditStepName != null)
            auditStepName = auditStepName.trim();
        this.auditStepName = auditStepName;
    }

    public void reset() {
        if (this.getSetAuditStep()) {
            this.setAuditStepLevel(-1);
            this.setAuditStepName(null);
            this.setAuditGroupId(null);
        } else {
            this.setId(null);
            this.setName(null);
            this.setValid(Constant.VALID_NO);
            this.setTransactionTypeId(-1);
            this.setAuditSteps(new AuditStep[0]);
        }
    }
    
}
